package com.example.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("sys_menu")
public class Menus implements Serializable {

    private static final long serialVersionUID = 433895970877919310L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String label;
    private String name;
    private String path;
    private String component;
    private String icon;
    private int parent;
    private int sort;
    @TableField(exist = false)
    private List<Menus> children;
}
